package com.axxy.decorate;

/**
 * @author 一缕茜阳
 * @date 2021/7/15
 */
public class Tea extends Drink {

    private int size;

    public Tea(int size) {
        this.size = size;
    }

    @Override
    double cost(){
        super.size = size;
        return 5.0 + super.cost();
    }

    @Override
    String getName(){
        return "Tea";
    }
}
